const mongoose = require('mongoose')
const { Schema, model } = mongoose

const RoutesSchema = new Schema({
  'path': {type: String},
  'component': {type: String},
  'name': {type: String},
  'iconCls': {type: String},
  'children': {type: String}
}, {versionKey: false})
RoutesModel = model('Routes', RoutesSchema)

// 3. 向外暴露
module.exports = RoutesModel